import request from '@/utils/request'

export function getFlexibles(query) {
  return request({
    url: '/promotion/flexible/getList',
    method: 'post',
    data: query
  })
}

export function getFlexible(id) {
  return request({
    url: '/promotion/flexible/getDetail',
    method: 'post',
    data: id
  })
}

export function saveFlexible(id) {
  return request({
    url: '/promotion/flexible/save',
    method: 'post',
    data: id
  })
}

export function removeFlexibleByID(id) {
  return request({
    url: '/promotion/flexible/delete',
    method: 'post',
    data: id
  })
}

export function changeFlexibleStatusByID(id) {
  return request({
    url: '/promotion/flexible/change-status',
    method: 'post',
    data: id
  })
}

